package homework_03;

public class home_11 {
    public static void main(String[] args) {
        int a=9990,count=0,i,b,c,d,e,f;
        if (a>=10000&&a<=99999){
            System.out.println("五位数");
            b=a/10000;
            c=a/1000%10;
            d=a/100%10;
            e=a/10%10;
            f=a%10;
            System.out.println(b+" "+c+" "+d+" "+e+" "+f);
        }
        else if (a>=1000&&a<=9999){
            b=a/1000;
            c=a/100%10;
            d=a/10%10;
            e=a%10;
            System.out.println("四位数");
            System.out.println(b+" "+c+" "+d+" "+e);
        }
        else if (a>=100&&a<=999){
            b=a/100;
            c=a/10%10;
            d=a%10;
            System.out.println("三位数");
            System.out.println(b+" "+c+" "+d);
        }
        else if (a>=10&&a<=99){
            b=a/10;
            c=a%10;
            System.out.println("两位数");
            System.out.println(b+" "+c);
        }
        else if (a>=0&&a<=9){
            System.out.println("一位数");
            System.out.println(a);
        }
    }
}
